<?php 
/**
 * eBay Label Printing Program Sellers Address Database Table Class 
 * this is a Db Table Class , It stores customer postal address information
 * Advanced/Featured seller have more than one address available
 * @package  eBayLabelPrinter
 * @category Models/DbTable
 * @author   Norman Dong <norman.dong@hotmail.com>
 * @version  Initial
 * @copyright LeadCasket.com
 * @link     www.leadcasket.com
 * @license  Commercial
 */
 class Model_DbTable_Sellers_Selleraddress extends Zend_Db_Table_Abstract 
{
	/**
	 * @var string Class Table Name
	 */
	protected $_name = 'seller_address'; 
	/**
	 * Get Seller Address By ID
	 * Fetch array by Seller ID, Make sure do not fetch the password and unique ID
	 * @param int $idSeller  The Seller ID
	 * @return array  Not decide what to return 
	 */ 
 	public function getSellerAddress($idSeller){
		
		}
	/**
	 * Add a New Seller Address 
	 * Fetch array by profile ID ,Maybe only useable when need update
	 * @param int $idLabelProfile  The Label Profile ID
	 * @return array The Label Profile Array
	 */		
	public function addSellerAddress($idSeller,$senderName,$addrLine1,$addrLine2,$addrCity,$addrState,$addrCountry,$addrPostCode,$addrShortLine1,$addrShortLine2){
		$data = array(           
            'id_seller_addr' => $idSeller,
			'contact_seller_addr' => $senderName,
			'line1_seller_addr' => $addrLine1,
			'line2_seller_addr' => $addrLine2,
			'city_seller_addr' => $addrCity,
			'state_seller_addr' => $addrState,
			'country_seller_addr' => $addrCountry,
			'postcode_seller_addr' => $addrPostCode,
			'shortform_line1_addr' => $addrShortLine1,
			'shortform_line2_addr' => $addrShortLine2,
        );
        try{
			$this->insert($data);
		}
		catch(Exception $e){
			return false;
			}
		return true;		
		}
	/**
	 * Disable certain Seller
	 * Fetch array by profile ID ,Maybe only useable when need update
	 * @param int $idLabelProfile  The Label Profile ID
	 * @return array The Label Profile Array
	 */		
	public function deleteSellerAddress(){
		
		}
	/**
	 * Update Seller information
	 * Fetch array by profile ID ,Maybe only useable when need update
	 * @param int $idLabelProfile  The Label Profile ID
	 * @return array The Label Profile Array
	 */		
	public function updateSellerAddress(){
		
		}
	/**
	 * Check if the Seller User Name has been Used
	 * Fetch array by profile ID ,Maybe only useable when need update
	 * @param int $idLabelProfile  The Label Profile ID
	 * @return array The Label Profile Array
	 */		
	public function listSellerAddress($idSeller){
		
		}
	/**
	 * Check if the Seller User Name has been Used
	 * Fetch array by profile ID ,Maybe only useable when need update
	 * @param int $idLabelProfile  The Label Profile ID
	 * @return array The Label Profile Array
	 */		
	public function getSellerAddressCount(){
		
		}		
	/**
	 * Genrate Security password according Unique id and the customer Provided password
	 * Fetch array by profile ID ,Maybe only useable when need update
	 * @param int $idLabelProfile  The Label Profile ID
	 * @return array The Label Profile Array
	 */		
	private function listSellerByCountry(){
		
		}
												
}
 ?>